package org.example.springcloudgateway.filter;

import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.OrderedGatewayFilter;

public class myCustomFilter {
    public GatewayFilter GetMyCustomFilter(String AccessSecret) {
        GatewayFilter jwtAuthenticationFilter = new JwtAuthenticationFilter(AccessSecret); // 你的实际过滤器
        return new OrderedGatewayFilter(jwtAuthenticationFilter, 1);  // 设置顺序并传入实际过滤器
    }
}
